package com.cjhhv.communal.api;

import com.cjhhv.base.model.ResponseDataModel;
import com.cjhhv.communal.constant.AppNameConstant;
import com.cjhhv.communal.factory.FileUploadApiFallbackFactory;
import com.cjhhv.communal.model.FileDataModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId ="fileUploadApi" ,name = AppNameConstant.COMMUNAL_SERVICE_NAME, fallbackFactory = FileUploadApiFallbackFactory.class)
public interface  FileUploadApi {

    /**
     * 根据文件id修改文件信息
     * @param fileDataModel
     * @return
     */
    @PutMapping("/fileData/updateFileDataByFileId")
    ResponseDataModel updateFileDataByFileId(@RequestBody FileDataModel fileDataModel);

    /**
     * 根据业务id修改业务id
     * @param fileDataModel
     * @return
     */
    @PutMapping("/fileData/updateBusinessIdByBusinessId")
    ResponseDataModel updateBusinessIdByBusinessId(@RequestBody FileDataModel fileDataModel);


}
